package com.chuyi.demo.treetable;
import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.WindowConstants;

import org.jdesktop.swingx.JXTreeTable;


public class TFrame {
	
	public static void main(String[] args) {
		
		JFrame  f = new JFrame();
		f.setSize(500, 400);
		
		
		MyTreeTableModel treeTableModel = new MyTreeTableModel();  

		JXTreeTable treeTable = new JXTreeTable( treeTableModel ); 

		JScrollPane s = new JScrollPane(treeTable);
		Container contentPane = f.getContentPane();
		contentPane.add(s, BorderLayout.CENTER);
		f.pack();
		f.setVisible(true);
		f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		
	}

}
